bpf: move global verifier log into verifier environment
authorJakub Kicinski <jakub.kicinski@netronome.com>
Mon, 9 Oct 2017 17:30:11 +0000 (10:30 -0700)
committerBen Hutchings <ben@decadent.org.uk>
Fri, 22 Dec 2017 14:12:23 +0000 (14:12 +0000)
commit345e05060d9be4795199eae86846f0b51e3e97aa
tree5cf32a3a0976451b0316653dbf21a05952c8da3b
parenta5881c0ae61d004b124cedcf8006ddc5c02deb50
bpf: move global verifier log into verifier environment

The biggest piece of global state protected by the verifier lock
is the verifier_log.  Move that log to struct bpf_verifier_env.
struct bpf_verifier_env has to be passed now to all invocations
of verbose().

Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Simon Horman <simon.horman@netronome.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
[bwh: Backported to 4.14]

Gbp-Pq: Topic bugfix/all
Gbp-Pq: Name bpf-move-global-verifier-log-into-verifier-environme.patch
include/linux/bpf_verifier.h
kernel/bpf/verifier.c